package com.mym.demo;

import com.mym.test.FlowerImpl;

import java.util.Scanner;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/10 11:45
 * @description
 */
public class FlowerTest {
    public static final Scanner INPUT = new Scanner(System.in);
    public static final FlowerImpl flowerImpl=new FlowerImpl();
    public static void main(String[] args) {
        loop:
        while (true) {
            System.out.println("=========================欢迎光临七彩鲜花销售管理系统===========================");
            System.out.println("1.查询销售订单");
            System.out.println("2.修改销售订单");
            System.out.println("3.删除销售订单");
            System.out.println("4.系统退出");
            System.out.println("==============================================================================");
            System.out.print("请输入您的选择：");
            int choice = INPUT.nextInt();
            switch (choice){
                case 1:
                    // 查询销售订单
                    flowerImpl.FlowerCha();
                    break ;
                case 2:
                    flowerImpl.FlowerXiu();
                    // 修改销售订单
                    break ;
                case 3:
                    flowerImpl.FlowerShan();
                    // 删除销售订单

                    break ;
                default:
                    System.out.println("系统退出,欢迎下次再来！");
                    break loop; // 系统退出
            }
        }
    }
}

